package com.question_barrier.repository;

import com.question_barrier.entity.AnswerState;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AnswerStateRepository extends JpaRepository<AnswerState,Long> {
    AnswerState findByOpenId(String openId);
    boolean existsByOpenId(String openId);
    boolean existsByOpenIdAndQuestionId(String openId, String questionId);
    AnswerState findByOpenIdAndQuestionId(String openId, String questionId);
}
